package com.katze.boot.system.domain;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.katze.boot.common.converter.DateTimeStringConverter;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName("sys_dept")
@ExcelIgnoreUnannotated
public class Dept implements Serializable {

    private static final long serialVersionUID = -7790334862410409053L;

    @TableId(value = "dept_id", type = IdType.AUTO)
    private Long deptId;

    private Long parentId;

    @ExcelProperty(value = "部门名称")
    private String deptName;

    private Double orderNum;

    @ExcelProperty(value = "创建时间", converter = DateTimeStringConverter.class)
    private Date createTime;

    @ExcelProperty(value = "修改时间", converter = DateTimeStringConverter.class)
    private Date modifyTime;

    private transient String createTimeFrom;

    private transient String createTimeTo;

}